﻿<?xml version="1.0" encoding="utf-8" ?>
<Page xmlns="http://www.baojiansoft.com/schemas/dynamicpage" ObjectId="HierarchyDataManagement" Type="BaoJianSoft.Platform.Web.DynamicPage.HierarchyDataManagement, BaoJianSoft.Platform">
	<Title>$HierarchyType$ $Resources.Membership.Management, BaoJianSoft.Web$</Title>
	<PermissionValue>$HierarchyType$Management</PermissionValue>
	<Panels>
		<QueryPanel HeaderText="$Resources.Membership.Query, BaoJianSoft.Web$ $HierarchyType$">
			<TextBox FieldName="Name" Label="$Resources.Membership.Name, BaoJianSoft.Web$: " />
		</QueryPanel>
		
		<ButtonPanel ButtonAlignment="Left">
			<Button CommandArgument="New" Type="NewImage" ToolTip="$Resources.Membership.Add, BaoJianSoft.Web$" />
			<Button CommandArgument="ShowHierarchyDataTreeView" Type="CustomImage" ImageUrl="~/resources/images/query.png" ToolTip="$Resources.Membership.ShowHierarchyDataTreeView, BaoJianSoft.Web$" />
		</ButtonPanel>
		
		<GridViewPanel HeaderText="$Resources.Membership.QueryResults, BaoJianSoft.Web$"
			EntityName="$HierarchyType$"
			EnabledCheckBoxField="true"
			PageSize="25"
			PrimaryKeyFieldName="Id"
			DefaultSortField="LastUpdatedDate"
			DefaultSortDirection="DESC">
			<ViewButton />
			<EditButton />
			<DeleteButton />
			<Fields>
				<Field FieldName="Name" HeaderText="$Resources.Membership.Name, BaoJianSoft.Web$" />
				<Field FieldName="ParentHierarchyDataId" HeaderText="$Resources.Membership.ParentHierarchyData, BaoJianSoft.Web$">
					<Transform-Callback Type="BaoJianSoft.Platform.Web.DynamicPage.GridViewFieldValueTransformCallback.ShowHierarchyDataName, BaoJianSoft.Platform" />
				</Field>
				<Field FieldName="LastUpdatedBy" HeaderText="$Resources.Membership.ModifiedBy, BaoJianSoft.Web$" Align="Center">
					<Transform-Callback Type="BaoJianSoft.Platform.Web.DynamicPage.GridViewFieldValueTransformCallback.ShowUserDisplayName, BaoJianSoft.Platform"/>
				</Field>
				<Field FieldName="LastUpdatedDate" HeaderText="$Resources.Membership.ModifiedOn, BaoJianSoft.Web$" Align="Center" Width="150" />
				<RowView FieldName="Description" />
			</Fields>
		</GridViewPanel>
		
		<DetailPanel HeaderText="$HierarchyType$ $Resources.Membership.Profile, BaoJianSoft.Web$" ShowMessageAfterSavedSuccessfully="false">
			<Type>BaoJianSoft.Platform.Web.DynamicPage.HierarchyDataDetailPanel, BaoJianSoft.Platform</Type>
			<SkinPath>~/Templates/Platform/HierarchyData.ascx</SkinPath>
			<SaveButton />
			<CancelButton />
		</DetailPanel>
		
		<AggregatePanel HeaderText="$Resources.Membership.ShowHierarchyDataTreeView, BaoJianSoft.Web$" ShowMessageAfterSavedSuccessfully="false">
			<Type>BaoJianSoft.Platform.Web.DynamicPage.HierarchyDataAggregatePanel, BaoJianSoft.Platform</Type>
			<SkinPath>~/Templates/Platform/HierarchyDataAggregate.ascx</SkinPath>
			<CancelButton Text="$Resources.Membership.Close, BaoJianSoft.Web$" />
		</AggregatePanel>
	</Panels>
</Page>